package com.apeli.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;

@Configuration
public class I18nApp {
    @Bean("messageSource")
    ResourceBundleMessageSource resourceBundleMessageSource() {
        ResourceBundleMessageSource rb=new ResourceBundleMessageSource();
        rb.setBasenames(new  String[]{
                "Apeli","i18n"
        });
        return  rb;
    }
}
